{include file='include/head.html'}

<br />
{if !empty($fines)}
    <div class="smallhead basicpad attn">Current fines: {$fines}</div>
{/if}

<br>
{if !empty($items)}
    
    <div class="smallhead basicpad">Checked-out items</div>

    {foreach from=$items item=i}
        <div class="bres">
            <table>
                <tr>
                    <td class="cover_image">
                        <a class="button" href="{$baseurl}my_account?url={$i.renew_link|escape:'url'}"><span>Renew</span></a>
                    </td>

                    <td valign="middle" width="100%">
                        <span class="title">{$i.title}</span><br>
                        <span {if $i.overdue}class="attn"{/if}>{$i.status}</span>
                    </td>
                </tr>
            </table>
        </div>
        
    {/foreach}

{else}
    <div class="basicpad smallhead">No checked-out items.</div>
{/if}

{if !empty($holds)}
    <br />
    
    <div class="smallhead basicpad">Current holds</div>

    {foreach from=$holds item=h}
        <div class="bres">
            <table>
                <tr>
                    <td class="cover_image">
                      {if isset($h.cancel_link)} 
                        <a class="button" href="{$baseurl}my_account?url={$h.cancel_link|escape:'url'}"><span>Cancel</span></a>
                      {/if}
                    </td>

                    <td valign="middle" width="100%">
                        <span class="title">{$h.title}</span><br /><br />
                        <span><em>{$h.status}</em>{if $h.available} (pickup at {$h.pickup}){/if}</span>
                    </td>
                </tr>
            </table>
        </div>
        
    {/foreach}

{else}
    <div class="basicpad smallhead">No current holds.</div>
{/if}

<div class="topborder"></div>

{include file="include/foot.html"}
